package com.framework.modules.job.task;

import com.framework.common.utils.R;
import com.framework.modules.sys.entity.SysUserEntity;
import com.framework.modules.sys.service.SysUserService;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("statLiveRoomTask")
public class StatLiveRoomTask {
    private Logger logger = LoggerFactory.getLogger(getClass());

    public void test(String params) {

        logger.info("当前任务参数为：" + params);

        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        logger.info("任务完成 StatLiveRoomTask ...");
    }

    public void test2() {
        logger.info("我是不带参数的test2方法，正在被执行");
    }
}
